package com.atguigu.yygh.order.service;


import com.atguigu.yygh.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2023-01-06
 */
public interface OrderInfoService extends IService<OrderInfo> {

    Long submitOrder(String scheduleId, Long patientId, Long userId);

    OrderInfo getOrderInfo(Long orderId);

    List<OrderInfo> selectList(Long userId);

    void updateStatusById(Long orderId, Integer status);

    /**
     * 未支付取消订单
     *
     * @param orderId
     */
    void cancelOrder(Long orderId);

    void patientTips();
}
